package ming.model.type;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.commons.lang.StringUtils;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

 
@SuppressWarnings("serial")
@Entity
@Table(name = "T_BUSSINESS_LICENSELOG", schema = "")
@DynamicInsert(true)
@DynamicUpdate(true)
public class LicenseLog implements java.io.Serializable {

	private String path;// 此属性不存数据库，虚拟属性
	// Fields
	
	private String id;
	private String bussId;
	private String bussName;
	private String applicant;
	private String IDNumber;
	private String createtime;
	private String filename;
	private String phone;
	private String preAcceptNo;
	private String terminalNo;
	private int uploadstatus;

	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 36)
	public String getId() {
		if (!StringUtils.isBlank(this.id)) {
			return this.id;
		}
		return UUID.randomUUID().toString();
	}

	public void setId(String id) {
		this.id = id;
	}
	
	

	@Transient
	public String getPath() {
		return path;
	}
	

	@Column(name = "createtime", length = 100)
	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Column(name = "bussId", length = 100)
	public String getBussId() {
		return bussId;
	}

	public void setBussId(String bussId) {
		this.bussId = bussId;
	}

	@Column(name = "bussName", length = 100)
	public String getBussName() {
		return bussName;
	}

	public void setBussName(String bussName) {
		this.bussName = bussName;
	}

	@Column(name = "applicant", length = 100)
	public String getApplicant() {
		return applicant;
	}

	public void setApplicant(String applicant) {
		this.applicant = applicant;
	}

	@Column(name = "IDNumber", length = 100)
	public String getIDNumber() {
		return IDNumber;
	}

	public void setIDNumber(String iDNumber) {
		IDNumber = iDNumber;
	}

	@Column(name = "filename", length = 100)
	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	@Column(name = "uploadstatus")
	public int getUploadstatus() {
		return uploadstatus;
	}

	public void setUploadstatus(int uploadstatus) {
		this.uploadstatus = uploadstatus;
	}

	@Column(name = "phone", length = 20)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "preAcceptNo", length = 100)
	public String getPreAcceptNo() {
		return preAcceptNo;
	}

	public void setPreAcceptNo(String preAcceptNo) {
		this.preAcceptNo = preAcceptNo;
	}

	@Column(name = "terminalNo", length = 50)
	public String getTerminalNo() {
		return terminalNo;
	}

	public void setTerminalNo(String terminalNo) {
		this.terminalNo = terminalNo;
	}


	
	

}